// 设施路由
const facility = require('express').Router();

// 查询所有设施信息
facility.get('/', require('./actions/facility/find'));
// 根据设施id查询设施信息
facility.get('/:id', require('./actions/facility/findById'));
// 创建设施
facility.post('/', require('./actions/facility/create'));
// 根据id删除设施信息
facility.delete('/:id', require('./actions/facility/findByIdAndDelete'));
// 根据id修改设施信息
facility.put('/:id', require('./actions/facility/findByIdAndUpdate'));

// 导出路由
module.exports = facility;